﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.List"%>
<%@ page import="org.wei.rssreader.RssSourceBO"%>
<%@ page import="org.wei.rssreader.RssDAO"%>
<%@ page import="com.sun.syndication.feed.synd.SyndFeed"%>
<%@ page import="com.sun.syndication.feed.synd.SyndEntry"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>RSS最新内容查看</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="simplestyle.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="view.css" rel="stylesheet" type="text/css" media="screen"/></head>
<body>
<h1>RSS最新内容查看</h1>
<!--  -->
charset:<%=request.getCharacterEncoding() %>
<%
List<SyndFeed> feeds = (List<SyndFeed>)request.getAttribute("feeds");
if (feeds.size() != 0 ){
	for(SyndFeed SyndFeedImpl : feeds){
%>
=========================================================================================
<div>
	<h1>作者：<%=SyndFeedImpl.getTitle()%></h1>feed charset:<%=SyndFeedImpl.getEncoding() %>
	<%
	List<SyndEntry> entries = (List<SyndEntry>)SyndFeedImpl.getEntries();
	if (entries.size() != 0 ){
		for(SyndEntry enty : entries){
	%>	
	<h2>标题：<%=enty.getTitle()%></h2>
	<h2>原文链接：<a href="<%=enty.getLink()%>" target="_black"><%=enty.getTitle()%></a></h2>
	<h2>内容简介：</h2></br> <p><%=enty.getDescription().getValue()%></p>>
	
	<%
		}
	}
	%>
</div>	
<%
	}
}
%>

</body>
</html>